package com.forekonw.demo6;

public class Game {
    private int a;
    private int b;
    int count1;//ren
    int count2;//diannao

    public Game(int a ,int b){
        this.a=a;
        this.b=b;
    }
    public Game(){

    }

    public int chuquan(int a ,int b){
        Person p = new Person();
        Computer c = new Computer();
        if ((a==1&&b==3)||(a==2&&b==1)||(a==3&&b==2)){
            System.out.println("你赢了呦");
            count1++;//人得分
            return count1;
        }else if ((a==1&&b==1)||(a==2&&b==2)||(a==3&&b==3)){
            System.out.println("平局呦");
            return 0;
        }else {
            System.out.println("你输了，很遗憾，加油哦");
            count2++;//电脑得分
            return count2;
        }
    }


    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int getB() {
        return b;
    }

    public void setB(int b) {
        this.b = b;
    }
}
